package service;

import Dao.TypeDao;
import Dao.TypeDaoImpl;
import entity.Type;
import util.DatabaseUtil;

import java.sql.Connection;
import java.util.List;

public class TypeServiceImpl implements TypeService {
    Connection conn = DatabaseUtil.getConnection();
    TypeDao typeDao = new TypeDaoImpl(conn);
    @Override
    public List<Type> getSeries(String name) {
        return typeDao.getSeries(name);
    }
}
